<template>
  <div>
    <el-form :inline="true" :model="formInline" ref="formInline" class="form-inline">
   <el-form-item prop="goods">
    <el-input v-model="formInline.goods" placeholder="商品名称/商品编号"></el-input>
  </el-form-item>
  <el-form-item  prop="time">
    <el-input v-model="formInline.time" placeholder="创建时间"></el-input>
  </el-form-item>
  <el-form-item  prop="region">
    <el-select v-model="formInline.region" placeholder="全部">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item>
    <el-button type="warning" @click="clean('formInline')">重置</el-button>
    <el-button type="primary" @click="onSubmit">查询</el-button>
  </el-form-item>
</el-form>
  </div>
</template>

<script>
export default {
  methods:{
    onSubmit () {

      console.log("ssss")
    },
    clean(formInline){
      this.$refs[formInline].resetFields()
    }
  } ,
  data() {
    return {
      formInline: {
        goods: "",
        time: "",
        region: "",
      },
      options: [
        {
          value: "选项1",
          label: "番禺饮料批发",
        },
        {
          value: "选项2",
          label: "蓝月亮总代理",
        },
      ],
    };
  },
};
</script>

<style lang="less" scope>

.form-inline {
  width: 96%;
  margin: 0 auto;
  .el-form-item__content {
    margin: 20px 0 0 20px;
  }
}
</style>